package com.thouiot.modbus.entity.vo;

/**
 * @description modbus 定位vo
 * @author wangkai
 * @date 2025/04/11 09:23
 */
public class ModbusLocatorVo {

    /**
     * 主机名称
     */
    private String name;

    /**
     * 主机类型（tcp,udp,rtu,ascii）
     */
    private String modbusType;

    /**
     * 从机地址
     */
    private Integer slaveId;

    /**
     * 寄存器地址
     */
    private Integer offset;

    /**
     * 存储区类型（coil_input,discrete_input,holding_register,input_register）
     */
    private String registerType;

    private ReadValueVo readValue;

    private WriteValueVo writeValue;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModbusType() {
        return modbusType;
    }

    public void setModbusType(String modbusType) {
        this.modbusType = modbusType;
    }

    public Integer getSlaveId() {
        return slaveId;
    }

    public void setSlaveId(Integer slaveId) {
        this.slaveId = slaveId;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public String getRegisterType() {
        return registerType;
    }

    public void setRegisterType(String registerType) {
        this.registerType = registerType;
    }

    public WriteValueVo getWriteValue() {
        return writeValue;
    }

    public void setWriteValue(WriteValueVo writeValue) {
        this.writeValue = writeValue;
    }

    public ReadValueVo getReadValue() {
        return readValue;
    }

    public void setReadValue(ReadValueVo readValue) {
        this.readValue = readValue;
    }
}
